﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace GIVisualEditor
{
    public partial class UpgradeUI : Form
    {
        private string sTargetUrl = "";
        public UpgradeUI(string sDownloadUrl)
        {
            sTargetUrl = sDownloadUrl;
            InitializeComponent();
            linkLabel1.Links.Add(0, linkLabel1.Text.Length, sDownloadUrl);
            linkLabel1.LinkClicked += new LinkLabelLinkClickedEventHandler(linkLabel1_LinkClicked);
        }

        void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            linkLabel1.LinkVisited = true;
            System.Diagnostics.Process.Start(sTargetUrl);
            System.Threading.Thread.Sleep(3000);
            this.Close();
        }
    }
}
